Skip to content

Rename noChildren to hasChildren for clarity#599

Open
gioalex07 wants to merge 3 commits intoVREMSoftwareDevelopment:mainfrom
gioalex07:fix/rename-nochildren-to-haschildren
Open

Rename noChildren to hasChildren for clarity#599
gioalex07 wants to merge 3 commits intoVREMSoftwareDevelopment:mainfrom
gioalex07:fix/rename-nochildren-to-haschildren

Conversation

@gioalex07
Copy link
Copy Markdown

The property noChildren returned true when children were present, which was semantically misleading. Renamed to hasChildren to match the actual behavior and avoid confusion for future contributors.

Summary

  • Rename WiFiDetail.noChildren to hasChildren for semantic clarity.
  • The property name was misleading: noChildren returned true when children were present.

What does this implement/fix?

  • Renamed property in WiFiDetail.kt
  • Updated consumer in AccessPointsAdapterGroup.kt (2 call sites)
  • Updated test names and assertions in WiFiDetailTest.kt and AccessPointsAdapterGroupTest.kt

Does this close any issues?

  • N/A (naming/clarity improvement)

How was this tested?

  • Platform: WSL2 / AlmaLinux 9
  • Build variant: debug
  • Commands run:
./gradlew ktlintCheck     → BUILD SUCCESSFUL
./gradlew testDebugUnitTest → BUILD SUCCESSFUL

gioalex07 and others added 2 commits April 2, 2026 18:02
The property noChildren returned true when children were present,
which was semantically misleading. Renamed to hasChildren to match
the actual behavior and avoid confusion for future contributors.
@VREMSoftwareDevelopment
Copy link
Copy Markdown
Owner

Thanks for the contribution.

  1. AI Usage Disclosure
    Disclose any AI tool involvement and use the “AI assistance used” label.

  2. Testing Requirements
    Changes must be tested on a real Android device.
    Emulator‑only testing or running build tasks (e.g., ktlintCheck, unit tests, successful Gradle build) is not sufficient.
    UI/UX behavior, layouts, gestures, and rendering often differ between emulators and actual devices.

Please update the PR with real‑device testing details so review can continue.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.83%. Comparing base (bd25b4d) to head (463e1b2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #599   +/-   ##
=========================================
  Coverage     97.83%   97.83%           
  Complexity      975      975           
=========================================
  Files           121      121           
  Lines          2581     2581           
  Branches        211      211           
=========================================
  Hits           2525     2525           
  Misses           19       19           
  Partials         37       37           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@VREMSoftwareDevelopment VREMSoftwareDevelopment added the AI assistance used Indicates that an AI assistant was used to generate this PR label Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI assistance used Indicates that an AI assistant was used to generate this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants